/* 
 * File:   LZ77.h
 * Author: jorge
 *
 * Created on April 11, 2013, 5:44 PM
 */

#ifndef LZ77_H
#define	LZ77_H

class LZ77
{
public:
    static const char* compress(const char* file);
    static const char* decompress(const char* file);
private:
    static std::string pair(int position, int size);
    static std::string getLongest(std::string str, int pos, std::string subStr, int& index);
    static std::string findLongest(std::string str, int pos, std::string subStr, int posSub);
private:
};

#endif	/* LZ77_H */

